#include<unistd.h>
#include<iostream>

int main()
{
    std::cout<<"我是被替换的进程，我的pid："<<getpid()<<std::endl;
    int n=execl("./exec","ls","-a","-l",nullptr);
    std::cout<<"execl 函数的返回值为："<<n<<std::endl;
    return 0;
}
